package mobilesearch.data;

import android.os.Parcel;
import android.os.Parcelable;
import android.util.Log;

public class AudioData implements Parcelable {
	private static final String TAG = "AudioData";

	private String audioId;
	private String fileName;
	private String artists;
	
	public AudioData() {
		Log.i(TAG, "AudioData()");
	}
	
	private AudioData(Parcel in){
		Log.i(TAG, "AudioData(Parcel in)");
		this.audioId = in.readString();
		this.fileName = in.readString();
		this.artists = in.readString();
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(this.audioId);
		dest.writeString(this.fileName);
		dest.writeString(this.artists);
	}
	
	public static final Parcelable.Creator<AudioData> CREATOR =new Parcelable.Creator<AudioData>() {

		@Override
		public AudioData createFromParcel(Parcel source) {
			return new AudioData(source);
		}

		@Override
		public AudioData[] newArray(int size) {
			return new AudioData[size];
		}
	};

	public String getAudioId() {
		return audioId;
	}

	public void setAudioId(String audioId) {
		this.audioId = audioId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getArtists() {
		return artists;
	}

	public void setArtists(String artists) {
		this.artists = artists;
	}
	
	
}
